﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace CoreCms.Net.Model.Entities
{
    /// <summary>
    /// 
    ///</summary>
    [SugarTable("xrc_apply_broker")]
    public class XrcApplyBroker
    {
        /// <summary>
        /// 经纪人id 
        ///</summary>
         [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true  )]
         public int Id { get; set; }


        /// <summary>
        /// 店铺id 
        ///</summary>
        [SugarColumn(ColumnName = "gid")]
        public int Gid { get; set; }
        /// <summary>
        /// 申请人姓名 
        ///</summary>
        [SugarColumn(ColumnName="name"    )]
         public string Name { get; set; }
        /// <summary>
        /// 用户openid 
        ///</summary>
         [SugarColumn(ColumnName="openid"    )]
         public string Openid { get; set; }
        /// <summary>
        /// 申请人手机号 
        ///</summary>
         [SugarColumn(ColumnName="mobile"    )]
         public string Mobile { get; set; }
        /// <summary>
        /// 我的上级Id 
        ///</summary>
        [SugarColumn(ColumnName = "parentId")]
        public int? ParentId { get; set; }
        /// <summary>
        /// 申请人Id 
        ///</summary>
        [SugarColumn(ColumnName="userid"    )]
         public int? Userid { get; set; }
        /// <summary>
        /// 申请状态 0 待审核  1 成功 2 失败 
        ///</summary>
         [SugarColumn(ColumnName="state"    )]
         public byte  state { get; set; }

        /// <summary>
        /// 分佣比例  可用默认 可编辑
        ///</summary>
        [SugarColumn(ColumnName = "scale")]
        public double scale { get; set; }

        /// <summary>
        /// 申请失败原因 
        ///</summary>
        [SugarColumn(ColumnName="fall"    )]
         public string Fall { get; set; }
        /// <summary>
        /// 申请时间 
        ///</summary>
         [SugarColumn(ColumnName="create_time"    )]
         public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 更新时间 
        ///</summary>
         [SugarColumn(ColumnName="update_time"    )]
         public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 删除状态 0 未删除 1 已删除 
        ///</summary>
         [SugarColumn(ColumnName="delete"    )]
         public int? Delete { get; set; }
    }
}
